-- GENERATED SPELL FOR [Frigid Necromancer Attacker] --


function spell0_27687(pUnit, Event) --@Bone Armor,n/a--
pUnit:FullCastSpellOnTarget(50324,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27687', 631, 1)
end

function spell1_27687(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(9613,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27687', 3000, 1)
end

function Sorts_27687(pUnit, Event)
local choix_sorts_27687 = math.random(0, 1)
if choix_sorts_27687 == 0 then
pUnit:RegisterEvent('spell0_27687', 1, 1)
end
if choix_sorts_27687 == 1 then
pUnit:RegisterEvent('spell1_27687', 1, 1)
end
end

function mob27687_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27687', math.random(1500, 3000), 1)
end

function mob27687_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27687_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27687_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27687, 1, 'mob27687_Action')
RegisterUnitEvent(27687, 2, 'mob27687_Leave')
RegisterUnitEvent(27687, 3, 'mob27687_Kill')
RegisterUnitEvent(27687, 4, 'mob27687_Die')
